package lhdx9;

public class Aircraft {
    private String name;
    private int deadLoad;
    private int altitude;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDeadLoad() {
        return deadLoad;
    }

    public void setDeadLoad(int deadLoad) {
        this.deadLoad = deadLoad;
    }

    public int getAltitude() {
        return altitude;
    }

    public void setAltitude(int altitude) {
        this.altitude = altitude;
    }

    public Aircraft(String name, int deadLoad, int altitude) {
        this.name = name;
        this.deadLoad = deadLoad;
        this.altitude = altitude;
    }
    public void takeoff(){
        System.out.println(name+"飞机在机场起飞！");
        System.out.println("在飞行过程中还可以加速!");
        System.out.println("这架"+name+"飞机可以在"+altitude+"米高度飞行！");
        System.out.println(name+"飞机在机场降落！");
    }
}
